package com.you.atlas.biz.place.service.impl;

import java.util.List;

import com.you.atlas.biz.place.service.PlaceQueryService;
import com.you.common.ibatis.data.DataList;
import com.you.place.dal.dao.PlaceDAO;
import com.you.place.dal.dao.constant.PlaceType;
import com.you.place.dal.dao.dataobject.PlaceDO;

/**
 * @author yunpeng.jiangyp
 */
public class PlaceQueryServiceImpl implements PlaceQueryService {

    private PlaceDAO placeDAO;

    public void setPlaceDAO(PlaceDAO placeDAO) {
        this.placeDAO = placeDAO;
    }

    @Override
    public PlaceDO find(Long id) {
        return placeDAO.find(id);
    }

    @Override
    public DataList queryByParentId(int pageNo, int pageSize, Long parentId) {
        return placeDAO.queryByParentId(pageNo, pageSize, parentId);
    }

    @Override
    public DataList queryByContryId(int pageNo, int pageSize, Long countyId, PlaceType placeType) {
        return placeDAO.queryByCountyId(pageNo, pageSize, countyId, placeType);
    }

    @Override
    public List<PlaceDO> find(Long[] id) {

        return placeDAO.find(id);
    }

}
